{% extends "base.html" %}
{% load markup comments tagging_tags attachment_inclusion_tag%}

{% block title %}{{ object.title|escape }} - 新闻{% endblock %}
{% block css.custom %}
<link href="{{MEDIA_URL}}themes/yaml/css/layout_2col_right_31.css" rel="stylesheet" type="text/css"/>
<!--[if lte IE 7]>
<link href="{{MEDIA_URL}}themes/yaml/css/patches/patch_2col_right_31.css" rel="stylesheet" type="text/css" />
<![endif]-->
{% endblock css.custom %}

{% block breadcrumbs %} <a href="/">首页</a>&raquo; <a href="{% url news-index %}">新闻中心</a>{% for title, url in object.category.get_url_name %} &raquo; <a href='{{ url }}'>{{ title }}</a>{% endfor %} &raquo; <a href='{{ object.get_absolute_url }}'>{{ object.title|escape }}</a> {% endblock %}


{% block content %}

      <!-- begin: #col3 static column -->
      <div id="news">
        <div id="news_content">
        	<div id="news_detail">
				 
				<div class="aw-tit clearfix"> 
					<div class="aw-cad">						
						<div class="aw-D">{{ object.pub_date|date:"d" }}</div>
						<div class="aw-Y">{{ object.pub_date|date:"Y-m" }}</div>
					</div>
					<div class="info">	
						<h2>{{ object.title|escape }} </h2>
						<p>分类：<a href="{{object.category.get_absolute_url}}" title="查看该分类中所有文章">{{object.category}}</a>  | 出处：{{ object.source }} |   | 查阅次数：{{ object.views}}  | [字号：大 中 小] 	</p>
					
						<dl>
							<dt>标签(Tags):</dt>
							<dd>{% tags_for_object object as tag_list %}
							{% for tag in tag_list %}<a href="tags/{{ tag.name }}">{{ tag.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
							</dd>
						</dl> 
					
					</div> 
				</div>
			
				<div class="text">
					<p>{% autoescape off %} 
						{{ object.content|escape|linebreaks }}
					{% endautoescape %}</p>
					<p class="center">{% news_attachments object %}</p>			
					<p class="right">(提交人：{{ object.deliverer }}，责任编辑：{{ object.editor }})<br />[<a href="#post-comment">我来说两句</a>(1条)]</p>
				</div>	
				
		
			</div>
			
			
			<div class="info">
				往前的：{% if object.get_previous %}<a href="{{ object.get_previous.get_absolute_url }}"  title="">{{ object.get_previous }}</a>{%else%}没有了{% endif %} &nbsp;&nbsp;&nbsp;&nbsp;
				往后的：{% if object.get_next %}<a href="{{ object.get_next.get_absolute_url }}"  title="">{{ object.get_next }}</a>{%else%}没有了{% endif %} 		
			</div>
			
		
		
		</div>
        
        <div id="ie_clearing">&nbsp;</div>
        <!-- End: IE Column Clearing -->
      </div>
      <!-- end: #col3 -->
      
      
    <div id="news_comments">
			{% get_comment_count for object as comment_count %}
			<h2>评论列表<span id="commentAllCountin">({{ comment_count }}条)</span>:</h2>
			{% get_comment_list for object as comment_list %}
			<dl class="comments_list">{% for comment in comment_list %}
				<dt class="dimmed">会员 {{comment.user_name}} 在{{ comment.submit_date|date:"Y-m-d P" }}发表了评论:</dt>
				<dd class="green">{{comment.comment}}</dd>
		   {% endfor %}</dl>
		   
			<div id='commentform'><a name="post-comment"></a>
			    <h2>发表你的评论：</h2>
			    {% spaceless %}{% render_comment_form for object %}{% endspaceless %}
    </div></div>

{% endblock %}
